<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ConsoleCursor</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ConsoleCursor()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>ConsoleCursor</b></font>(Height)</blockquote>

</blockquote>
<b>概要</b><br><blockquote>

更改光标的显示，该指示器将在设置之后显示字符时开始使用。 . 此函数允许您更改光标的高度。 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Height</i></td>
<td width="90%"> 
光标的新高度。光标高度值可以为0(针对隐藏鼠标)或者1至10之间。. 目前有三个值有效： 

<pre><font face="Courier New, Courier, mono"size="2">  1 : Underline 下划线光标 (默认)
  5 : Mid-height 中高光标
  10: Full-height 完整高度光标
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>备注</b></p><blockquote>

By default the cursor is a flashing underline in consoles under the Windows OS. Note that you might need to make the console window full-screen to see the true effect of this function. <br><br>控制台必须是图形模式, 请参阅 <a href="enablegraphicalconsole.html">EnableGraphicalConsole()</a>. 

</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenConsole</font>()
<font color="#3A3966">    EnableGraphicalConsole</font>(1)

    <b><font color="#3A3966">For</font></b> CursorHeight = 0 <b><font color="#3A3966">To</font></b> 10
<font color="#3A3966">      ConsoleCursor</font>(CursorHeight)
<font color="#3A3966">      PrintN</font>("Press return to increase cursor size")
<font color="#3A3966">      Input</font>()
    <b><font color="#3A3966">Next</font></b>
    
<font color="#3A3966">    PrintN</font>("Press return to exit")
<font color="#3A3966">    Input</font>()
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="enablegraphicalconsole.html">EnableGraphicalConsole()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>Windows</Blockquote></p><center>&lt;- <a href=consolecolor.html>ConsoleColor()</a> - <a href="index.html">Console 目录</a> - <a href="consoleerror.html">ConsoleError()</a> -&gt;<br><br>

</body></html>